﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    登录
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>用户登陆</h2>
    <p>
        请输入您的姓名和密码. 如果你没有账号请点击这里<%= Html.ActionLink("注册", "Register") %> .
    </p>
    <%= Html.ValidationSummary(".") %>
<span style="color: Red;">
        <%=Html.Encode(TempData["message"]) %></span>
    <% using (Html.BeginForm()) { %>
        <div>
            <fieldset>
                <legend>用户登陆</legend>
                <p>
                    <label for="username">姓名:</label>
                    <%= Html.TextBox("username") %>
                    <%= Html.ValidationMessage("Name") %>
                </p>
                <p>
                    <label for="password">密码:</label>
                    <%= Html.Password("password") %>
                    <%= Html.ValidationMessage("password") %>
                </p>
                <p>
                    <%= Html.CheckBox("rememberMe") %> <label class="inline" for="rememberMe">记住密码?</label>
                </p>
                <p>
                    <input type="submit" value="登 陆" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
